
package requests

import (
	"github.com/goravel/framework/contracts/http"
	"github.com/goravel/framework/contracts/validation"
)

type WechatMediaRequest struct {

	Type string `json:"type" form:"type"`

	Path string `json:"path" form:"path"`

	MediaId string `json:"media_id" form:"media_id"`

	Url string `json:"url" form:"url"`

	Temporary string `json:"temporary" form:"temporary"`

	AddTime string `json:"add_time" form:"add_time"`

}

func (r *WechatMediaRequest) Authorize(ctx http.Context) error {
	return nil
}

func (r *WechatMediaRequest) Rules(ctx http.Context) map[string]string {
	return map[string]string{

		"type": "required",

		"path": "required",

		"media_id": "required",

		"url": "required",

		"temporary": "required",

		"add_time": "required",

	}
}

func (r *WechatMediaRequest) Messages(ctx http.Context) map[string]string {
	return map[string]string{}
}

func (r *WechatMediaRequest) Attributes(ctx http.Context) map[string]string {
	return map[string]string{}
}

func (r *WechatMediaRequest) PrepareForValidation(ctx http.Context, data validation.Data) error {
	return nil
}
